import request from '@/utils/request'

// 查询流程节点列表
export function listFlowtempnode(query) {
  return request({
    url: '/flow/flowtempnode/list',
    method: 'get',
    params: query
  })
}

// 查询流程节点详细
export function getFlowtempnode(guid) {
  return request({
    url: '/flow/flowtempnode/' + guid,
    method: 'get'
  })
}

//通过id查询流程节点信息
export function getFlowtempnodeInFo(id){
  return request({
    url:'/flow/flowtempnode/' + id,
    method:'get'
  })
}


// 新增流程节点
export function addFlowtempnode(data) {
  return request({
    url: '/flow/flowtempnode',
    method: 'post',
    data: data
  })
}

// 修改流程节点
export function updateFlowtempnode(data) {
  return request({
    url: '/flow/flowtempnode',
    method: 'put',
    data: data
  })
}

// 删除流程节点
export function delFlowtempnode(guid) {
  return request({
    url: '/flow/flowtempnode/' + guid,
    method: 'delete'
  })
}

// 导出流程节点
export function exportFlowtempnode(query) {
  return request({
    url: '/flow/flowtempnode/export',
    method: 'get',
    params: query
  })
}

// 重新加载流程配置
export function allNeedReload(query) {
  return request({
    url: '/allNeedReload',
    method: 'get',
    params: query
  })
}
